package com.meal.base.test.DesignMode.strategy;

/**
 * @program: meal->Addition
 * @description: 加法策略
 * @author: yangzhanghui
 * @create: 2020-04-03 16:49
 **/
public class Addition implements Strategy{//实现算法接口

    @Override
    public int calculate(int a, int b) {//加数与被加数
        return a + b;//这里我们做加法运算
    }

}